package com.zhiyou100.controller;

import com.zhiyou100.pojo.User;
import com.zhiyou100.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {
        @Resource
        private UserService userService;

        @RequestMapping("/findAll.action")
        public List<User> findAll(){
            return userService.findAll();
        }
}
